package com.nfIt.dao.Impl;

import com.nfIt.dao.BookDao;

/**
 * ClossName:BookDaoImpl
 * Pakage:com.nfIt.dao.Impl
 * Description
 *
 * @Author L
 * @Create 2024/4/22 19:17
 * @Version 2023.1.3
 */
public class BookDaoImpl implements BookDao {

    //定义简单类型
    private int connectionNum;
    private String databaseName;

    //添加set方法
    public void setConnectionNum(int connectionNum) {
        this.connectionNum = connectionNum;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    @Override
    public void say() {
        System.out.println("Bookdao 实现"+"连接数量："+connectionNum+" "+"数据库名称："+databaseName);
    }
}
